var app = getApp();
Component({
  properties: {
        itemout: Object,
        params : Object,
        shopid : Number,
    },
    data: {
        killtime : {},
    },
    options : {
        addGlobalClass : true,
    },
    methods: {
        navigateto : function( e ){
            var self = this;
            if( self.data.params.indexmes == 1 || !wx.requestSubscribeMessage){
                app.com.navigateto( e );
            }else{
                wx.requestSubscribeMessage({
                    tmplIds : self.data.params.submess,
                    complete : function(){
                        app.com.navigateto( e );
                    }
                })
            }
        },
        url : function( e ){
            app.com.navigateto( e );
        },   
        tel : function(e){
            app.com.callphone( e );
        },
        onChangekill : function(e){
            var self = this;
            this.setData({
                killtime : e.detail
            })
        },
    }

})